package com.example.b_308.myapplication.model.base;


import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by tongkang on 2017/10/31.
 */

public class BaseCustomer extends BaseModel<BaseCustomer> {
    /**
     * 客户ID
     */
    String id;
    //姓名
    String name;
    //客户地址
    String address;
    //所属公司
    String company;
    //所属部门
    String department;
    //职位
    String title;
    //手机号码
    String phone;
    //创建者公司ID
    String creator_company_id;
    //座机号码
    String landline;
    //创建者ID
    String creator_id;
    //邮件
    String email;
    //创建时间
    String create_time;

    public BaseCustomer(String customId) {
        setId(customId);
    }

    public BaseCustomer() {
    }

    public void setId(String id) {

        put("id", id);
        this.id = id;
    }

    public void setName(String name) {

        put("name", name);
        this.name = name;
    }

    public void setAddress(String address) {

        put("address", address);
        this.address = address;
    }

    public void setCompany(String company) {

        put("company", company);
        this.company = company;
    }

    public void setDepartment(String department) {

        put("department", department);
        this.department = department;
    }

    public void setTitle(String title) {

        put("title", title);
        this.title = title;
    }

    public void setPhone(String phone) {

        put("phone", phone);
        this.phone = phone;
    }

    public void setCreator_company_id(String creator_company_id) {

        put("creator_company_id", creator_company_id);
        this.creator_company_id = creator_company_id;
    }

    public void setLandline(String landline) {

        put("landline", landline);
        this.landline = landline;
    }

    public void setCreator_id(String creator_id) {

        put("creator_id", creator_id);
        this.creator_id = creator_id;
    }

    public void setEmail(String email) {

        put("email", email);
        this.email = email;
    }

    public void setCreate_time(String create_time) {

        put("create_time", create_time);
        this.create_time = create_time;
    }

    public String getId() {
        if (null == id)
            id = getStr("id");
        return id;
    }

    public String getName() {
        if (null == name)
            name = getStr("name");
        return name;
    }

    public String getAddress() {
        if (null == address)
            address = getStr("address");
        return address;
    }

    public String getCompany() {
        if (null == company)
            company = getStr("company");
        return company;
    }

    public String getDepartment() {
        if (null == department)
            department = getStr("department");
        return department;
    }

    public String getTitle() {
        if (null == title)
            title = getStr("title");
        return title;
    }

    public String getPhone() {
        if (null == phone)
            phone = getStr("phone");
        return phone;
    }

    public String getCreator_company_id() {
        if (null == creator_company_id)
            creator_company_id = getStr("creator_company_id");
        return creator_company_id;
    }

    public String getLandline() {
        if (null == landline)
            landline = getStr("landline");
        return landline;
    }

    public String getCreator_id() {
        if (null == creator_id)
            creator_id = getStr("creator_id");
        return creator_id;
    }

    public String getEmail() {
        if (null == email)
            email = getStr("email");
        return email;
    }

    public String getCreate_time() {
        if (null == create_time)
            create_time = getStr("create_time");
        return create_time;
    }
}
